package com.transac.demo.controller;

import com.transac.demo.service.TransactionMandatoryService;
import com.transac.demo.service.TransactionNotSupportedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/")
public class TestNotSupportedController {
    @Autowired
    TransactionNotSupportedService transactionNotSupportedService;

    @PostMapping("/testNotSupported1")
    @ResponseBody
    public void testNotSupported1() {
        transactionNotSupportedService.updateMoney1();
    }

    @PostMapping("/testNotSupported2")
    @ResponseBody
    public void testNotSupported2() {
        transactionNotSupportedService.updateMoney2();
    }
}
